package Serveur;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import javax.security.auth.login.LoginException;

public interface InterfacePublic extends Remote{
	
	public InterfacePrivee logon(InterfaceClient c, String uname, String passwd) throws RemoteException, LoginException;
	
	public void inscription(Utilisateur u) throws RemoteException;
	
	public ArrayList<Twouit> getDerniersTwouitUtilisateur(String utilisateur) throws RemoteException;
	
	public ArrayList<Twouit> getDerniersTwouitTopic(String topic) throws RemoteException;
	
	public ArrayList<String> getListeTopics() throws RemoteException;
	
	public ArrayList<Utilisateur> getListeUtilisateurs() throws RemoteException;
}
